<?php

namespace System\Types;

final class Type extends Object
{

    /**
     * @param Object $obj
     * @return \ReflectionClass
     */
    public static function TypeOf(Object $obj)
    {
        if (!\is_object($obj))
            return \gettype($obj);

        return new \ReflectionClass($obj);
    }

}